projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16174d7
)
Only apply last change to the clipboard
author
Po Lu
<luangruo@yahoo.com>
Tue, 1 Feb 2022 02:13:15 +0000
(10:13 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Tue, 1 Feb 2022 02:13:15 +0000
(10:13 +0800)
* lisp/select.el (gui--selection-value-internal): Only return
nil if we own the clipboard.
lisp/select.el
patch
|
blob
|
history
diff --git
a/lisp/select.el
b/lisp/select.el
index 420967c1b00ce4e25c17d9968acd8bba48dcd2fc..d9f537cfce6019bc97546ce082fa86c56b18b197 100644
(file)
--- a/
lisp/select.el
+++ b/
lisp/select.el
@@
-173,6
+173,7
@@
decoded. If `gui-get-selection' signals an error, return nil."
(unless (and (memq window-system '(x haiku))
;; gui-backend-selection-p might be unreliable on other
;; window systems.
+ (eq type 'CLIPBOARD)
(gui-backend-selection-owner-p type))
(let ((request-type (if (memq window-system '(x pgtk))
(or x-select-request-type